import request from '@/utils/request'


export function classificationDictionaryList(data) { //分类字典-列表
  return request({
    url: '/sys-center/api/system/classification/class/list/page',
    method: 'post',
    data
  })
}


export function classificationDictionaryAdd(data) { //分类字典-新增
  return request({
    url: '/sys-center/api/system/classification/class/list',
    method: 'post',
    data
  })
}

//原 put
export function classificationDictionaryEdit(data) { //分类字典-编辑
  return request({
    url: '/sys-center/api/system/classification/class/put/list',
    method: 'post',
    data
  })
}

//原 del
export function classificationDictionaryDelete(id) { //分类字典-删除
  return request({
    url: '/sys-center/api/system/classification/class/list/del/' + id,
    method: 'get',
  })
}


export function classificationDictionaryDetails(id) { //分类字典-详情
  return request({
    url: '/sys-center/api/system/classification/class/list/' + id,
    method: 'get',
  })
}

export function classificationDictionaryTree(id) { //分类字典-树
  return request({
    url: '/sys-center/api/system/classification/class/tree/' + id,
    method: 'get',
  })
}


export function classificationDictionaryTreeList(data) { //分类字典-树-列表
  return request({
    url: '/sys-center/api/system/classification/class/tree/page',
    method: 'post',
    data
  })
}




export function classificationDictionaryTreeAdd(data) { //分类字典-树-新增
  return request({
    url: '/sys-center/api/system/classification/class/tree',
    method: 'post',
    data
  })
}

//原 put
export function classificationDictionaryTreeEdit(data) { //分类字典-树-编辑
  return request({
    url: '/sys-center/api/system/classification/class/put/tree',
    method: 'post',
    data
  })
}

//原 del
export function classificationDictionaryTreeDelete(id) { //分类字典-树-删除
  return request({
    url: '/sys-center/api/system/classification/class/tree/del/' + id,
    method: 'get',
  })
}


export function classificationDictionaryTreeDetails(id) { //分类字典-树-详情
  return request({
    url: '/sys-center/api/system/classification/class/tree/details/' + id,
    method: 'get',
  })
}